﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TypingG
{
    class StringRandom
    {
        //speed 
        private static int speed;
        public static int Speed
        {
            get
            {
                return speed;
            }
            set
            {
                speed = value;
            }
        }
        //
        private static string strlv1 = "asdfjkl;";
        private static string strlv2 = "asdfghjkl;poiuytrewqzxcvbnm,.";
        private static string strlv3 = "ZzXxCcVvBbNnMmLlKkJjHhGgFfDdSsAaPpOoIiUuYyTtRrEeWwQq;,.";
        private static string str = string.Empty;
        public static void pickLv(int _level)
        {
            switch (_level)
            {
                case 1: str = strlv1; break;
                case 2: str = strlv2; break;
                case 3: str = strlv3; break;
                default: str = strlv3; break;
                
            }
            
        }
        public static string getStRandom(int num)
        {
            string s = string.Empty;
            Random r = new Random();
            for (int i = 0; i < num; i++)
            {
                int m = r.Next(str.Length);
                s += str[m];
            }
            return s;
        }
    }
}
